package cl.sms.service;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class LoginApp extends Activity {

	EditText user;
	String valorpass ;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login_user);

		 user = (EditText) findViewById(R.id.edit_userlogin);
		EditText pass = (EditText) findViewById(R.id.edit_passlogin);
		Button buttonStart = (Button)findViewById(R.id.buttonguardar);
		
		user.setText("");
		if(user.getText().toString().trim().equals("")){
			 valorpass = "";
		}
		else
			valorpass="no entra";
		

		/**Boton start*/
		buttonStart.setOnClickListener(new Button.OnClickListener(){

			@Override
			public void onClick(View arg0) {
				

			Intent i = new Intent();
			i.setClass(LoginApp.this, AndroidSmsService.class);
			Log.i("hihihih","valor"+ valorpass);
			Log.i("pruebaaaaaaa", "kkkk");
			startActivity(i);
			}});


	}
}
